package com.invoicerecognition.backend.controller.student;

import com.invoicerecognition.backend.service.student.UpdateStudentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UpdateStudentInfoController {

    @Autowired
    private UpdateStudentInfoService updateStudentInfoService;

    @PostMapping("/api/student/update-info")
    public Map<String, String> UpdateStudentInfo(@RequestParam Map<String, String> data) {
        return updateStudentInfoService.UpdateStudentInfo(data);
    }

}
